<script setup lang="ts">
import SpectrometerExperiment from "@/components/SpectrometerExperiment.vue";
import { ref } from "vue";

const pageTitle = ref("光谱仪实验");
const pageDescription = ref(
  "通过分光计测量不同光谱线的衍射角，计算光的波长并与标准值进行对比分析"
);
</script>

<template>
  <div class="experiment-view">
    <div class="experiment-header">
      <h1 class="experiment-title">{{ pageTitle }}</h1>
      <p class="experiment-description">{{ pageDescription }}</p>
    </div>

    <div class="experiment-content">
      <SpectrometerExperiment />
    </div>
  </div>
</template>

<style scoped>
.experiment-view {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.experiment-header {
  margin-bottom: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.experiment-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.experiment-description {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.5;
}

.experiment-content {
  flex: 1;
}
</style>
